package com.kaixin001.tk.datatype;

public class GardenItem {

	private String farmnum = "";
	private String cropsid = "";
	private String fuid = "";
	private String status = "";
	private String grass="";
	private String shared="";
	private String cropsstatus ="";
	private String grow="";
	private String totalgrow="";
	private String fruitnum="";
	private String seedid="";
	private String crops="";
	private String farm="";
	private String vermin="";
	private String water="";	
	
	public String getFarmnum() {
		return farmnum;
	}
	public void setFarmnum(String farmnum) {
		this.farmnum = farmnum;
	}
	public String getCropsid() {
		return cropsid;
	}
	public void setCropsid(String cropsid) {
		this.cropsid = cropsid;
	}
	public String getFuid() {
		return fuid;
	}
	public void setFuid(String fuid) {
		this.fuid = fuid;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getGrass() {
		return grass;
	}
	public void setGrass(String grass) {
		this.grass = grass;
	}
	public String getShared() {
		return shared;
	}
	public void setShared(String shared) {
		this.shared = shared;
	}
	public String getCropsstatus() {
		return cropsstatus.length()==0?"0":cropsstatus;
	}
	public void setCropsstatus(String cropsstatus) {
		if(cropsstatus!=null)
		{
			this.cropsstatus = cropsstatus;
		}
	}
	public String getGrow() {
		return grow;
	}
	public void setGrow(String grow) {
		this.grow = grow;
	}
	public String getTotalgrow() {
		return totalgrow;
	}
	public void setTotalgrow(String totalgrow) {
		this.totalgrow = totalgrow;
	}
	public String getFruitnum() {
		return fruitnum;
	}
	public void setFruitnum(String fruitnum) {
		this.fruitnum = fruitnum;
	}
	public String getSeedid() {
		return seedid;
	}
	public void setSeedid(String seedid) {
		this.seedid = seedid;
	}
	public String getCrops() {
		return crops;
	}
	public void setCrops(String crops) {
		this.crops = crops;
	}
	public String getFarm() {
		return farm;
	}
	public void setFarm(String farm) {
		this.farm = farm;
	}
	
	public boolean isMature()
	{
		if(grow==null || totalgrow==null)
			return false;
		
		return this.grow.equals(this.totalgrow);
	}
	
	public boolean isShared()
	{

		return this.shared.equals("1");
	}
	public String getVermin() {
		return vermin;
	}
	public void setVermin(String vermin) {
		this.vermin = vermin;
	}
	public String getWater() {
		return water;
	}
	public void setWater(String water) {
		this.water = water;
	}
	
	
}
